package cn.iocoder.yudao.module.member.controller.admin.profit.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.alibaba.excel.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 利润报 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProfitMainRespVO {

    @Schema(description = "参数主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4168")
    @ExcelProperty("参数主键")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "独立池成本")
    @ExcelProperty("独立池成本")
    private BigDecimal privatePoolCost;

    @Schema(description = "独立池销额")
    @ExcelProperty("独立池销额")
    private BigDecimal privatePoolSales;

    @Schema(description = "设备成本")
    @ExcelProperty("设备成本")
    private BigDecimal deviceCost;

    @Schema(description = "设备销额")
    @ExcelProperty("设备销额")
    private BigDecimal deviceSales;

    @Schema(description = "证书成本")
    @ExcelProperty("证书成本")
    private BigDecimal certificateCost;

    @Schema(description = "证书销额")
    @ExcelProperty("证书销额")
    private BigDecimal certificateSales;

    @Schema(description = "统计时间")
    @ExcelProperty("统计时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date profitTime;

    @Schema(description = "总利润")
    @ExcelProperty("总利润")
    private BigDecimal totalProfit;

    @Schema(description = "总成本")
    @ExcelProperty("总成本")
    private BigDecimal totalCost;

    @Schema(description = "总销额")
    @ExcelProperty("总销额")
    private BigDecimal totalSales;

}
